package test_achieve.userapp_2;

import constant.Constant;
import cucumber.api.PendingException;
import cucumber.api.java.en.Given;
import org.openqa.selenium.By;
import test_achieve.Devices;

import java.net.UnknownHostException;

public class APPPrice {

    @Given("^a登录用户APP账户：(.*)$")
    public void a登录用户app账户() throws Throwable {
        Devices devices = new Devices();
        devices.a打开用户app();
    }


    @Given("^a已登录并进入主界面：(.*)$")
    public void a已登录并进入主界面() throws Throwable {
//        Constant.driverUserapp.
    }

    @Given("^a进入我的钱包$")
    public void a进入我的钱包() throws Throwable {
       Constant.driverUserapp.findElement(By.id("cn.ishansong:id/user_header_iv"));
//       Constant.driverUserapp.findElement(By.id(""))
    }


    @Given("^a获取账户余额：(.*)$")
    public void a获取账户余额账户余额() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }

    @Given("^a搜索并输入寄件地址:(.*)$")
    public void a搜索并输入寄件地址寄件地址() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }

    @Given("^a输入寄件人姓名:(.*)$")
    public void a输入寄件人姓名寄件人姓名() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }

    @Given("^a输入寄件人手机号:(.*)$")
    public void a输入寄件人手机号寄件人手机号() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }

    @Given("^a搜索并输入收件人地址:(.*)$")
    public void a搜索并输入收件人地址收件地址() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }

    @Given("^a输入收件人姓名$")
    public void a输入收件人姓名() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }

    @Given("^a输入收件人手机$")
    public void a输入收件人手机() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }

    @Given("^a选择物品重量：(.*)$")
    public void a选择物品重量重量() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }

    @Given("^a确认续重金额：(.*)$")
    public void a确认续重金额续重金额() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }

    @Given("^a确认优惠抵扣：(.*)$")
    public void a确认优惠抵扣优惠抵扣() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }

    @Given("^a确认还需支付：(.*)$")
    public void a确认还需支付还需支付() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }

    @Given("^a点击提交订单$")
    public void a点击提交订单() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }

    @Given("^a确定订单总价:(.*)$")
    public void a确定订单总价订单总价() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }

    @Given("^a确定支付$")
    public void a确定支付() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }

    @Given("^a确认订单提交成功$")
    public void a确认订单提交成功() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }

    @Given("^a确认余额支付信息与优惠信息：(.*)：(.*)：(.*)$")
    public void a确认余额支付信息与优惠信息余额支付订单总额优惠抵扣() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }

    @Given("^a确认账户余额$")
    public void a确认账户余额() throws Throwable {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    }


}

